package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/zrpc"
	"ucenter/internal/database"
)

type Config struct {
	zrpc.RpcServerConf
	Mysql      MysqlConfig     //mysql的配置
	CacheRedis cache.CacheConf //redis的配置
	//人机验证码配置
	Captcha CaptchaConf
	//jwt的配置
	JWT         AuthConfig
	MarketRpc   zrpc.RpcClientConf //market rpc服务
	Kafka       database.KafkaConfig
	ExchangeRpc zrpc.RpcClientConf
}

type MysqlConfig struct {
	DataSource string
}
type CaptchaConf struct {
	Vid string
	Key string
}
type AuthConfig struct {
	AccessSecret string
	AccessExpire int64
}
